package com.wyw.function.learning.demo2;

import com.wyw.function.learning.common.AppleClient;

/**
 * @Title   在DemoCLient2的基础上增加对苹果遍历，并格式化输出的需求
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * Update History:
 * Author        Time            Content
 */
public class DemoClient3 {

    public static void main(String[] args) {
        AppleClient.prettyPrintApple(AppleClient.getApples(), apple -> "color:" + apple.getColor() + ", wight: " + apple.getWeight());
        AppleClient.prettyPrintApple(AppleClient.getApples(), apple -> "color:" + apple.getColor());
    }

}
